package com.ihcil.forecast.demo.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * Create by lotus on 2021/8/15 8:42
 * <p>
 * 公共返回对象枚举
 */

@Getter
@ToString
@AllArgsConstructor
public enum RespBeanEnum {
    // 通用
    SUCCESS(200, "SUCCESS"),
    ERROR(500, "服务端异常"),
    // 登录
    LOGIN_ERROR(500210, "用户名或密码错误"),
    MOBILE_ERROR(500211, "手机号码格式不正确"),
    UNVALIDUSER_ERROR(500213, "users identification is unvalid"),
    BIND_ERROR(500212, "参数校验异常");



    // 登录
    private final Integer code;
    private final String message;

}
